package com.electromagnetic.industry.software.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.electromagnetic.industry.software.manage.pojo.models.Token;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TokenMapper extends BaseMapper<Token> {

    /**
     * 插入
     *
     * @param token
     * @return
     */
    @Override
    int insert(Token token);

    /**
     * 查询
     *
     * @param token
     * @return Token
     */
    Token selectToken(String token);

    /**
     * 删除token
     *
     * @param token
     * @return
     */
    int deleteToken(String token);

}
